package com.dongdongshop.service;

import com.dongdongshop.data.Page;
import com.dongdongshop.pojo.TbItemCat;

import java.util.List;


public interface ItemCatService {
    Page<TbItemCat> toShow(Long parentId, Integer pageNum, Integer pageSize);

    void add(TbItemCat tbItemCat);

    TbItemCat toUpdate(Long id);

    void updateInfo(TbItemCat tbItemCat);

    Integer deleteInfo(Long[] ids);

    List<TbItemCat> selectByPid(Long id);

    TbItemCat selectById(Long id);

    List<TbItemCat> getInfo();

    TbItemCat selectBycategory1Id(Long category1Id);

    TbItemCat selectBycategory2Id(Long category2Id);

    TbItemCat selectBycategory3Id(Long category3Id);
}
